﻿public class Phone
{
    public string Brand { get; set; }
    public ushort Weight { get; set; }
    public uint Camera { get; set; }
    public decimal Price { get; set; }

    public Phone(string brand, ushort weight, uint camera, decimal price)
    {
        Brand = brand;
        Weight = weight;
        Camera = camera;
        Price = price;
    }

    public void PrintPhoneInfo()
    {
        System.Console.WriteLine("=== 手机信息 ===");
        System.Console.WriteLine($"品牌: {Brand}");
        System.Console.WriteLine($"重量: {Weight}g");
        System.Console.WriteLine($"后置摄像头像素: {Camera:N0}");
        System.Console.WriteLine($"价格: ¥{Price:N2}");
        System.Console.WriteLine("================");
    }
} 